#include "app_message.h"
#include "log.h"

int main(int argc, char const *argv[])
{
    char bytes_data[9] = {1,2,4,'X','X','a','b','c','d'};

    char *json =  app_message_bytes2json(bytes_data,sizeof(bytes_data));

    log_info("json:%s",json);

    char bytes_buff[1024];
    int buff_len = 1024;
    app_message_json2bytes(json,bytes_buff,&buff_len);
    app_common_print_hex(bytes_buff,buff_len);
    
    return 0;
}
